<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="/static/style.css">
    <script src="{{ url_for('static', filename='script.js') }}" defer></script>
</head>
<body>
    <div class="register-container">
        <h1>用户注册</h1>
        {% if error %}
            <p class="error">{{ error }}</p>
        {% endif %}
        <form action="/register" method="post">
            <label for="username">姓名:</label>
            <input type="text" name="username" id="username" placeholder="请输入姓名" required>
    
            <label for="phone">电话:</label>
            <input type="text" name="phone" id="phone" placeholder="请输入电话" required>

            <label for="password">密码:</label>
            <input type="text" name="password" id="password" placeholder="请输入密码" required>
    
            <label for="model">车型:</label>
            <input type="text" name="model" id="model" placeholder="请输入车型" required>
    
            <label for="manufacturer">产商:</label>
            <input type="text" name="manufacturer" id="manufacturer" placeholder="请输入产商" required>
    
            <button type="submit">注册</button>
        </form>
        <p>已有账号？<a href="/">返回登录</a></p>
    </div>
</body>
</html>
